<?php
	$this->headScript()->appendFile(HTTP_HOST.'/js/site-manager/references.js');
	$this->headScript()->appendFile(HTTP_HOST.'/js/jQuery/jquery.cleditor.min.js');
	$this->headLink()->appendStylesheet(HTTP_HOST.'/css/jquery/cleditor/jquery.cleditor.css');
	$this->headScript()->captureStart();
?>
	$(document).ready(function(){
		$('textarea[name="Reference"]').cleditor();
	});
<?php
	 $this->headScript()->captureEnd();
?>
<div id="add_new_object">
<input type="hidden" name="ID" value="<?=$this->reference['ID']?>" />
<table border="1" class="references">
	<tr>
		<td>Имя: </td>
		<td><input type="text" name="Name" value="<?=htmlentities(stripslashes($this->reference['Name']), ENT_QUOTES, 'utf-8') ?>" /></td>
	</tr>
	<tr>
		<td>Email: </td>
		<td><input type="text" name="Email" value="<?=htmlentities(stripslashes($this->reference['Email']), ENT_QUOTES, 'utf-8') ?>" /></td>
	</tr>
	<tr>
		<td>Отзыв: </td>
		<td>
			<textarea name="Reference" style="width: 400px; height: 300px; padding: 3px;"><?=stripslashes($this->reference['Reference'])?></textarea>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="button" value="Сохранить" onclick="saveReference();"/>
		</td>
	</tr>
</table>


</div>
